import 'package:data/response/banner_response.dart';
import 'package:domain/model/banner_domain_model.dart';

extension BannerDomainModelMapper on BannerResponse {
  BannerDomainModel toDomainModel() => BannerDomainModel(
    id: id.toString(),
    desc: desc ?? "",
    title: title ?? "",
    imageUrl: imagePath ?? "",
    url: url ?? "",
  );
}
